From: Colin Walters Date: Mon, 19 Sep 2011 18:07:13 +0000 (-0400) Subject: app: Don't abort if a .desktop file has no Exec= key X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~1013^2^2~7639 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=37726a4cb69ab54298a3c95ccf469e1ab87ed4b1;p=gnome-shell.git app: Don't abort if a .desktop file has no Exec= key Seen in the wild in nautilus-pastebin-configurator.desktop. --- diff --git a/src/shell-app.c b/src/shell-app.c index 7535a8199..c813d9166 100644 --- a/src/shell-app.c +++ b/src/shell-app.c @@ -1171,6 +1171,9 @@ trim_exec_line (const char *str) { const char *start, *end, *pos; + if (str == NULL) + return NULL; + end = strchr (str, ' '); if (end == NULL) end = str + strlen (str);